package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.RdcAligeniusOrderEventUpdateResponse;

/**
 * TOP API: taobao.rdc.aligenius.order.event.update request
 * 
 * @author top auto create
 * @since 1.0, 2018.12.12
 */
public class RdcAligeniusOrderEventUpdateRequest extends BaseTaobaoRequest<RdcAligeniusOrderEventUpdateResponse> {
	
	

	/** 
	* 参数
	 */
	private String param0;

	public void setParam0(String param0) {
		this.param0 = param0;
	}

	public void setParam0(OrderEventDto param0) {
		this.param0 = new JSONWriter(false,true).write(param0);
	}

	public String getParam0() {
		return this.param0;
	}

	public String getApiMethodName() {
		return "taobao.rdc.aligenius.order.event.update";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("param0", this.param0);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<RdcAligeniusOrderEventUpdateResponse> getResponseClass() {
		return RdcAligeniusOrderEventUpdateResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 参数
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class OrderEventDto extends TaobaoObject {

	private static final long serialVersionUID = 3727117952637826619L;

	/**
		 * 扩展信息
		 */
		@ApiField("extra")
		private String extra;
		/**
		 * 子订单ID
		 */
		@ApiField("oid")
		private Long oid;
		/**
		 * 描述
		 */
		@ApiField("remark")
		private String remark;
		/**
		 * 主订单编号
		 */
		@ApiField("tid")
		private Long tid;
		/**
		 * 类型（1=创建销退单结果，2=作废销退单结果，3=入仓结果）
		 */
		@ApiField("type")
		private Long type;
		/**
		 * 变更值（当type=1时value可选值：1=成功，2=失败； 当type=2时value可选值：1=成功，2=失败； 当type=3时value可选值：1=成功）
		 */
		@ApiField("value")
		private String value;
	

	public String getExtra() {
			return this.extra;
		}
		public void setExtra(String extra) {
			this.extra = extra;
		}
		public Long getOid() {
			return this.oid;
		}
		public void setOid(Long oid) {
			this.oid = oid;
		}
		public String getRemark() {
			return this.remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public Long getTid() {
			return this.tid;
		}
		public void setTid(Long tid) {
			this.tid = tid;
		}
		public Long getType() {
			return this.type;
		}
		public void setType(Long type) {
			this.type = type;
		}
		public String getValue() {
			return this.value;
		}
		public void setValue(String value) {
			this.value = value;
		}

}


}